package reflect;

import reflect.annotations.AutoRunClass;

public class ReflectDemo10 {
    public static void main(String[] args) throws ClassNotFoundException {
        Class cls = Class.forName("reflect.Person");
        //注释：isAnnotationPresent() 判断类是否被指定注解所标注isAnnotationPrensent
        boolean b = cls.isAnnotationPresent(AutoRunClass.class);
        if(b){
            System.out.println("被标记了");
        }
        else{
            System.out.println("没有被标记");
        }
    }

}
